﻿using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Reports.ZPSPXT.Dtos
{
    public class ZPSPXTConfigInput : PagedAndSortedRequestDto
    {
        public string OrgCode { get; set; }

        public string OrgName { get; set; }

        public string OrgUnitFormal { get; set; }

        public string OrgUnitLabor { get; set; }
    }

    public class ZPSPXTConfigEditInput
    {
        public Guid? Id { get; set; }

        public string OrgCode { get; set; }

        public string OrgName { get; set; }

        public string OrgUnitFormal { get; set; }

        public string OrgUnitLabor { get; set; }
    }

    public class ZPSPXTConfigDto
    {
        [ExporterHeader(IsIgnore = true)]
        [ImporterHeader(IsIgnore = true)]
        public Guid Id { get; set; }

        [ExporterHeader("组织编码")]
        [ImporterHeader(Name = "组织编码")]
        public string OrgCode { get; set; }

        [ExporterHeader("组织名称")]
        [ImporterHeader(Name = "组织名称")]
        public string OrgName { get; set; }

        [ExporterHeader("组织编制（正式）")]
        [ImporterHeader(Name = "组织编制（正式）")]
        public string OrgUnitFormal { get; set; }

        [ExporterHeader("组织编制（劳务）")]
        [ImporterHeader(Name = "组织编制（劳务）")]
        public string OrgUnitLabor { get; set; }

        [ExporterHeader(IsIgnore = true)]
        [ImporterHeader(IsIgnore = true)]
        public DateTime AddTime { get; set; }

        [ExporterHeader(IsIgnore = true)]
        [ImporterHeader(IsIgnore = true)]
        public string AddWorkNumber { get; set; }

        [ExporterHeader(IsIgnore = true)]
        [ImporterHeader(IsIgnore = true)]
        public DateTime? UpdateTime { get; set; }

        [ExporterHeader(IsIgnore = true)]
        [ImporterHeader(IsIgnore = true)]
        public string UpdateWorkNumber { get; set; }
    }
}
